package cn.edu.xust.service.impl;

import cn.edu.xust.entity.AmmeterParameterEntity;
import cn.edu.xust.util.PageUtils;
import cn.edu.xust.util.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.edu.xust.dao.AmmeterParameterDao;
import cn.edu.xust.service.AmmeterParameterService;


@Service("ammeterParameterService")
public class AmmeterParameterServiceImpl extends ServiceImpl<AmmeterParameterDao, AmmeterParameterEntity> implements AmmeterParameterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AmmeterParameterEntity> page = this.page(
                new Query<AmmeterParameterEntity>().getPage(params),
                new QueryWrapper<AmmeterParameterEntity>()
        );

        return new PageUtils(page);
    }

}